package cn.codenest.rabbitmqbootconsumer.util;

import com.rabbitmq.client.Channel;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.support.AmqpHeaders;
import org.springframework.messaging.handler.annotation.Header;
import org.springframework.messaging.handler.annotation.Payload;

import java.io.IOException;

/**
 * <h3>demo</h3>
 * <p></p>
 *
 * @author : Hyman
 * @date : 2021-07-06 19:32
 **/
public interface RbmqService {
    void consumer(String msg);
    void consumer(@Payload Message message, @Header(AmqpHeaders.DELIVERY_TAG) long deliveryTag, Channel channel) throws IOException;

}
